package com.fuxi.cloud.common.expetion;

import com.fuxi.cloud.common.constant.ErrorCode;

/**
 * JimuOpenException
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-04-19
 */
public class JimuOpenException extends RuntimeException {
    private static final long serialVersionUID = 3655050728585279326L;
    private int code;

    public JimuOpenException() {
        this.code = ErrorCode.ERROR.getCode();
    }

    public JimuOpenException(String msg) {
        super(msg);
        this.code = ErrorCode.ERROR.getCode();
    }

    public JimuOpenException(int code, String msg) {
        super(msg);
        this.code = ErrorCode.ERROR.getCode();
        this.code = code;
    }

    public JimuOpenException(int code, String msg, Throwable cause) {
        super(msg, cause);
        this.code = ErrorCode.ERROR.getCode();
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}

